﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class EnemyAction
{
    public static void setDirectionToTarget(ActiveObject enemy, ActiveObject target)
    {
        if (enemy.getXPos() > target.getXPos())
            enemy.setDirection(Direction.LEFT);
        else if (enemy.getXPos() < target.getXPos())
            enemy.setDirection(Direction.RIGHT);
    }




}
